#region

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

#endregion

namespace InfoTech.VinhSon.Bussiness
{
    [Serializable]
    [Table("[dbo].[Group]")]
    public partial class Group
    {
        #region Properties

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Required]
        [Column("Id")]
        public Int32 Id { get; set; }

        [Column("Name")]
        public String Name { get; set; }

        [Column("Description")]
        public String Description { get; set; }

        [Column("Priority")]
        public Int32? Priority { get; set; }

        [Column("Index")]
        public System.Boolean? Index { get; set; }

        [Column("HomePage")]
        public Boolean? HomePage { get; set; }

        [Column("CategoryPage")]
        public Boolean? CategoryPage { get; set; }

        [Column("ArticlePage")]
        public Boolean? ArticlePage { get; set; }

        [Column("NoArticle")]
        public Boolean? NoArticle { get; set; }

        [Column("Activated")]
        public Boolean? Activated { get; set; }

        [Column("FilterByDate")]
        public Boolean? FilterByDate { get; set; }

        [Column("TopArticle")]
        public Int32? TopArticle { get; set; }

        [Column("FromDate")]
        public System.DateTime? FromDate { get; set; }

        [Column("ToDate")]
        public System.DateTime? ToDate { get; set; }

        [Column("Inactive")]
        public Boolean? Inactive { get; set; }

        [Column("LastModified")]
        public DateTime? LastModified { get; set; }

        #endregion

        #region Navigation

        public virtual ICollection<Article> Articles { get; set; }

        public virtual ICollection<ArticleGroup> ArticleGroups { get; set; }

        public virtual Layout Layout { get; set; }

        #endregion
    }
}
